# Makefile
# author: dipina@eside.deusto.es
CC=g++
LDFLAGS=-L../util -lm -lpthread -lesidesocket -lesidethread
INCLUDE=-I../util -I../dsm

main: TreasureServer TreasureClient
	
TreasureServer: TreasureServer.o
	$(CC) TreasureServer.o $(LDFLAGS) -L. -lesidedsm -o TreasureServer

TreasureServer.o: TreasureServer.cc
	$(CC) $(INCLUDE) -c TreasureServer.cc

TreasureClient: TreasureClient.o
	$(CC) TreasureClient.o $(LDFLAGS) -L. -lesidedsm -o TreasureClient

TreasureClient.o: TreasureClient.cc
	$(CC) $(INCLUDE) -c TreasureClient.cc

clean:
	rm *.o
	rm TreasureServer TreasureClient
